:root {
    --bg-light: #f5f5f7;
    --bg-dark: #111113;
    --card-light: #ffffff;
    --card-dark: #1c1c1e;
    --accent: #0070c9;
    --accent-dark: #0a84ff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 30px 60px rgba(0, 0, 0, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --transition-fast: 180ms ease;
    --transition-base: 260ms ease;
    font-family: "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

body {
    margin: 0;
    background: var(--bg-light);
    color: var(--text-primary);
    font-family: "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    animation: fadeIn 0.45s ease;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-dark);
}

header.app-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(16px);
    background: rgba(245, 245, 247, 0.72);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-primary);
}

.brand img {
    width: 32px;
    height: 32px;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}


.nav-links {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-group__title {
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.45);
    letter-spacing: 0.08em;
}

.nav-group__links {
    display: flex;
    gap: 14px;
}

.nav-group__links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.nav-group__links a.active,
.nav-group__links a:hover {
    color: var(--text-primary);
    transform: translateY(-1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    background: linear-gradient(135deg, #0a84ff, #66a6ff);
    color: #fff;
    box-shadow: 0 10px 25px rgba(10, 132, 255, 0.25);
}

.btn:hover {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 18px 35px rgba(10, 132, 255, 0.25);
}

.btn-ghost {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    box-shadow: none;
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.08);
}

.hero {
    padding: 80px 0;
}

.hero-home {
    padding-bottom: 40px;
}

.hero-home .app-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--accent);
    background: rgba(10, 132, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    width: fit-content;
}

.hero-content h1 {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
    margin: 0;
}

.hero-content p {
    max-width: 520px;
    margin: 0;
}

.hero-cta {
    display: flex;
    gap: 12px;
}

.hero-highlights {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
    color: var(--text-secondary);
}

.hero-highlights li::before {
    content: "·";
    color: var(--accent);
    margin-right: 6px;
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(420px, 100%);
    background: linear-gradient(160deg, rgba(10, 132, 255, 0.16), rgba(255, 255, 255, 0.9));
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(0, 0, 0, 0.65);
    font-size: 0.9rem;
}

.hero-card__header .status {
    color: #0a84ff;
    font-weight: 600;
}

.hero-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-card__title {
    margin: 0;
    font-weight: 600;
    font-size: 1.05rem;
}

.hero-card__meta {
    margin: 0;
    color: rgba(0, 0, 0, 0.6);
}

.hero-card__actions {
    display: flex;
    gap: 8px;
}

.hero-chip {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.65);
}

.hero-card__footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    font-size: 0.9rem;
}

.hero-card__footer p {
    margin: 4px 0 0;
    color: rgba(0, 0, 0, 0.6);
}

.section {
    padding: 56px 0;
}

.section-steps .grid {
    margin-top: 32px;
}

.section-heading {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 2.6rem);
}

.section-heading p {
    margin: 0;
    color: var(--text-secondary);
}

.section-scenarios .card {
    height: 100%;
}

.card-highlight {
    background: linear-gradient(160deg, rgba(10, 132, 255, 0.12), rgba(255, 255, 255, 0.92));
}

.card-list {
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 12px;
    color: var(--text-secondary);
}

.card-list li strong {
    color: var(--text-primary);
}

.ordered-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 12px;
    color: var(--text-secondary);
}

.ordered-list li::marker {
    font-weight: 600;
    color: var(--accent);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    background: var(--card-light);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(10, 132, 255, 0.12);
    color: #0a84ff;
    font-weight: 600;
    font-size: 0.8rem;
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-sm);
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: shimmer 1.6s infinite;
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 200;
}

.toast {
    min-width: 240px;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    background: #111;
    color: #fff;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(-10px);
    animation: toast-in 0.3s forwards;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead th {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding: 12px 0;
    text-align: left;
}

.table tbody td {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state img {
    width: min(320px, 60vw);
    margin-bottom: 24px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

.modal-backdrop.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal {
    background: var(--card-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 32px;
    width: min(420px, 90vw);
    transform: translateY(20px);
    animation: slideUp 0.35s ease forwards;
}

form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

form .field label {
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.85);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.2);
}

.switch {
    position: relative;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    transition: background var(--transition-fast);
}

.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.switch input:checked + .slider {
    background: linear-gradient(135deg, #0a84ff, #66a6ff);
}

.switch input:checked + .slider::before {
    transform: translateX(20px);
}

footer {
    margin-top: auto;
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.grid-2 {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.section-scenarios .card {
    height: 100%;
}

.card-highlight {
    background: linear-gradient(160deg, rgba(10, 132, 255, 0.12), rgba(255, 255, 255, 0.92));
}

.card-list {
    padding-left: 18px;
    margin: 0;
    display: grid;
    gap: 12px;
    color: var(--text-secondary);
}

.card-list li strong {
    color: var(--text-primary);
}

.ordered-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 12px;
    color: var(--text-secondary);
}

.ordered-list li::marker {
    font-weight: 600;
    color: var(--accent);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes toast-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero {
        padding: 60px 0;
    }
    .card {
        padding: 22px;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: var(--bg-dark);
        color: #f5f5f7;
    }
    header.app-header {
        background: rgba(17, 17, 19, 0.85);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .nav-links a {
        color: rgba(255, 255, 255, 0.65);
    }
    .nav-links a.active,
    .nav-links a:hover {
        color: #fff;
    }
    .card {
        background: var(--card-dark);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    }
    .btn-ghost {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    input,
    select,
    textarea {
        color: #f5f5f7;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    .table tbody td {
        border-color: rgba(255, 255, 255, 0.08);
    }
    footer {
        color: rgba(255, 255, 255, 0.5);
    }
}

